package com.kk.goGame.utils;
/*
 *@author KK on 2023.02.20 19:59
 */

import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient;
import com.qf.framwork.utils.PropertiesUtils;

public class AlipayUtils {
    private static AlipayClient alipayClient;

    static {
        alipayClient = new DefaultAlipayClient(
                PropertiesUtils.getProperties("aliGataWay"),
                PropertiesUtils.getProperties("APPID"),
                PropertiesUtils.getProperties("appPrivate.key"),
                "json",
                "utf-8",
                PropertiesUtils.getProperties("appPublic.key"),
                "RSA2");
    }
    public static AlipayClient getAlipayClient(){
        return alipayClient;
    }
}
